package com.gjy.liteflow.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-08-12 10:40:40
 */
@Configuration
public class BeanConfigUse {

    @Bean(initMethod = "initMethod", destroyMethod = "destroyMethod", name = "life")
    public LifeCyclic lifeCyclic() {
        LifeCyclic cyclic = new LifeCyclic();
        cyclic.setName("Hello BeanLife");
        return cyclic;
    }
}
